<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 自动识别最新稳定版的Vue.js  -->
    <script src="vue.js"></script>
</head>
<body xmlns:v-on="http://www.w3.org/1999/xhtml">
    <div id="app">
        <!--这是view-->
        <button v-if="showBtn" v-on:click="handleClick">Click me</button>
    </div>
</body>
<script>
    /*这是viewModel？*/
    new Vue({
        el:'#app',
        /*这是model？*/
        data:{
            showBtn:true
        },
        methods:{
            handleClick:function(){
                console.log('Clicked!');
                // this.showBtn=false;
            }
        }
    })
</script>
</html>